package operation;

import java.util.Scanner;

public interface IScanner {
    Scanner sc=new Scanner(System.in);
    default String scannerName(){
        String name=sc.nextLine();
        return name;
    }

    default String scannerAuthor(){
        String author=sc.nextLine();
        return author;
    }

    default double scannerPrice(){
        double price=sc.nextDouble();
        return price;
    }

    default String scanneType(){
        String type=sc.nextLine();
        return type;
    }
}
//nextLine可以读取空格，next还遇到空格就结束了
